#!/usr/bin/python3#
# -*- coding: utf-8 -*-
print( 'hello python demo3' )
#dict
#**********************************************
print( '===================<dict>====================' )
grade = { 'xiaowang':21, 'lili':33,  'zhuzhu':44 }
print( grade )
print( "lili value is %s" % grade['lili'] )

for key in list( grade ):
    print( "grade dict key is %s and value is %s" % (key, grade[key]) )

if grade.get('xiaoqian', False) == False:
    print( 'xiaoqian key is false' )
print( '===================</dict>====================' )
#**********************************************

#set
#**********************************************
print( '===================<set>====================' )
# use list to init the set
seta = set([1,2,2,3,3,4,5,9])               # use set function to define set ?? damn , some chaos
print( seta )                               # {1, 2, 3, 4, 5, 9}  remove the same element


print( '===================</set>====================' )
#**********************************************
